<?
include("common/header.html");
include("../_made/le.cfg.php");
include("common/left.html");
// include("common/page.php");
include COMMONPATH.'page.php';
if($_SESSION['memberID']!=1 && !($_SESSION['sid']==1 && strpos($_SESSION['qx'],'supply_apply'))){
    // exit("<script>window.location='dlogin.html'</script>");
    exit("不合法的身份访问！");
}
$currentPage=$_REQUEST["currentPage"]?$_REQUEST["currentPage"]:1;
$pageSize=$_REQUEST['pageSize']?$_REQUEST["pageSize"]:20;
$offset     =($currentPage-1)*$pageSize;
$a_sort=array();
$sel="select d.id,m.id mid,dname,account,mobile,cname,data1,d.creattime from uu_dist_apply d left join pft_member m on m.id=d.id2 where d.dtype=1 and d.status=0 limit $offset,$pageSize";
$GLOBALS['le']->query($sel);
while($row=$GLOBALS['le']->fetch_assoc()){
	$a_sort[]=$row;
}
$sel_total = 'select count(*) as total from uu_dist_apply where dtype=1 and status=0';
$GLOBALS['le']->query($sel_total);
$GLOBALS['le']->fetch_assoc();
$total = $le->f('total');
include("tpl/supply_apply.html");
include("common/footer.html");?>